#include "../include/MyCCMenuItemSprite.h"
using namespace cocos2d;
//CCMenuItemSprite * startGame=MyCCMenuItemSprite::itemFromNormalFrames("ban01_1.png","ban01_2.png","StartScene_Start Game_chs.png",152,38,this,menu_selector(MainForm::menuStartCallback));
//startGame->setPosition(ccp(767,650));
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over)
	{
		CCSprite * s1=CCSprite::spriteWithSpriteFrameName(normal);
		CCSprite * s2=CCSprite::spriteWithSpriteFrameName(over);
		CCMenuItemSprite * button = CCMenuItemImage::itemFromNormalSprite(s1,s2);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * disable)
	{
		CCMenuItemSprite * button =MyCCMenuItemSprite::itemFromNormalFrames(normal,over);
		CCSprite * disableImage=CCSprite::spriteWithSpriteFrameName(disable);
		button->setDisabledImage(disableImage);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over, cocos2d::CCObject* target, cocos2d::SEL_MenuHandler selector)
	{
		CCMenuItemSprite * button=MyCCMenuItemSprite::itemFromNormalFrames(normal,over);
		button->initWithTarget(target,selector);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * disable, cocos2d::CCObject* target, cocos2d::SEL_MenuHandler selector)
	{
		CCMenuItemSprite * button=MyCCMenuItemSprite::itemFromNormalFrames(normal,over,disable);
		button->initWithTarget(target,selector);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * textFrameName,int textLocationX,int textLocationY)
	{
		CCMenuItemSprite * button =MyCCMenuItemSprite::itemFromNormalFrames(normal,over);
		CCSprite * text=CCSprite::spriteWithSpriteFrameName(textFrameName);
		text->setPosition(ccp(textLocationX,textLocationY));
		button->addChild(text);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * disable,char * textFrameName,int textLocationX,int textLocationY)
	{
		CCMenuItemSprite * button =MyCCMenuItemSprite::itemFromNormalFrames(normal,over,disable);
		CCSprite * text=CCSprite::spriteWithSpriteFrameName(textFrameName);
		text->setPosition(ccp(textLocationX,textLocationY));
		button->addChild(text);
		return button;
	}

	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * textFrameName,int textLocationX,int textLocationY, CCObject* target, SEL_MenuHandler selector)
	{
		CCMenuItemSprite * button =MyCCMenuItemSprite::itemFromNormalFrames(normal,over,target,selector);
		CCSprite * text=CCSprite::spriteWithSpriteFrameName(textFrameName);
		text->setPosition(ccp(textLocationX,textLocationY));
		button->addChild(text);
		return button;
	}
	cocos2d::CCMenuItemSprite * MyCCMenuItemSprite::itemFromNormalFrames(char * normal,char * over,char * disable,char * textFrameName,int textLocationX,int textLocationY, CCObject* target, SEL_MenuHandler selector)
	{
		CCMenuItemSprite * button =MyCCMenuItemSprite::itemFromNormalFrames(normal,over,disable,target,selector);
		CCSprite * text=CCSprite::spriteWithSpriteFrameName(textFrameName);
		text->setPosition(ccp(textLocationX,textLocationY));
		button->addChild(text);
		return button;
	}
